The Dreamweaver JavaScript API > File manipulation functions > dom.insertObject()

 

dom.insertObject()

Availability

Dreamweaver 3.0

Description

Inserts the specified object, prompting the user for parameters if necessary.

Arguments

objectName

objectName is the name of an object in the Configuration/Objects folder.

Returns

Nothing.

Enabler

None.

Example

A call to dreamweaver.getDocumentDOM().insertObject('Button'); inserts a form button into the current document at the current insertion point or after the current selection.

Note: Although object files can be stored in separate folders, it's important that their file names be unique. If a file called Button.htm exists in the Forms folder and also in the MyObjects folder, Dreamweaver cannot distinguish between them.